package com.qyhl.module_practice.score.mine.act;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeAcitivityBean;

import java.util.List;

public class PracticeScoreMyActivityPresenter implements PracticeScoreMyActivityContract.PracticeScoreMyActivityPresenter {
    private PracticeScoreMyActivityModel mModel;
    private PracticeScoreMyActivityContract.PracticeScoreMyActivityView mView;

    PracticeScoreMyActivityPresenter(PracticeScoreMyActivityContract.PracticeScoreMyActivityView mView) {
        this.mView = mView;
        this.mModel = new PracticeScoreMyActivityModel(this);
    }


    @Override
    public void getList(String volId, String page) {
        mModel.getList(volId, page);
    }

    @Override
    public void getPublicList(String phone, String page) {
        mModel.getPublicList(phone, page);
    }

    @Override
    public void setList(List<PracticeAcitivityBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
